﻿@model XSTDZ.ERP.Application.DataContracts.OperationDto

@{
    ViewBag.Title = " - 添加菜单";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
}
<h2>添加菜单</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    if (@ViewBag.ParentId!=null&&@ViewBag.ParentId.ToString().Trim().Length>0)
    {
         <div class="editor-label">
            父级菜单
        </div>
        <div class="editor-field">
           <input type="hidden" value="@ViewBag.ParentId" id="ParentID" name="ParentID" />
           <input type="text"  disabled="disabled" value=" @ViewBag.ParentName" class = "text" id="ParentName" name="ParentName" />
        </div>
    }

        <div class="editor-label">
            @Html.LabelFor(model => model.Code)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Code, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.Code)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.OperationName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.OperationName, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.OperationName)
        </div>
          <div class="editor-label">
            @Html.LabelFor(model => model.IconUrl)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.IconUrl, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.IconUrl)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Desc)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Desc, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.Desc)
        </div>
     <div class="editor-label">
            @Html.LabelFor(model => model.OrderNum)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.OrderNum, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.OrderNum)
        </div>
     <p class="divBtn">
             <input type="hidden" id="hidHttpRefeParent" name="hidHttpRefeParent" value="grid" />
            <input type="hidden" id="hidHttpPostState" name="hidHttpPostState" value="@ViewBag.PostState" />
            <input type="submit" value="添加菜单"  class="BtnSubmit" />
            <input type="button" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnClose" id="btnFromClose" name="btnFromClose" class="BtnClose" />
        </p>
}
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>